import request from '@/utils/request'

// 查询车主的认证信息列表
export function listDriverAuth(query) {
  return request({
    url: '/auth/driverAuth/list',
    method: 'get',
    params: query
  })
}

// 查询车主的认证信息详细
export function getDriverAuth(id) {
  return request({
    url: '/auth/driverAuth/' + id,
    method: 'get'
  })
}

// 新增车主的认证信息
export function addDriverAuth(data) {
  return request({
    url: '/auth/driverAuth',
    method: 'post',
    data: data
  })
}

// 修改车主的认证信息
export function updateDriverAuth(data) {
  return request({
    url: '/auth/driverAuth',
    method: 'put',
    data: data
  })
}

// 删除车主的认证信息
export function delDriverAuth(id) {
  return request({
    url: '/auth/driverAuth/' + id,
    method: 'delete'
  })
}
